Mega Code Archive

Categories
1) Android
2) ASP.Net
3) ASP.Net Tutorial
4) C
5) C Tutorial
6) C#
7) C# Book
8) C# by API
9) C# Tutorial
10) C++
11) C++ Tutorial
12) Delphi
13) Flash ActionScript
14) Flex
15) Java
16) Java Book
17) Java by API
18) Java Tutorial
19) JavaScript DHTML
20) JavaScript Reference
21) JavaScript Tutorial
22) MSOfficeExcel 2007 Tutorial
23) MSOfficePowerPoint 2007 Tutorial
24) MSOfficeWord 2007 Tutorial
25) MSSQL
26) MSSQL Tutorial
27) MySQL
28) MySQL Tutorial
29) Oracle PLSQL
30) Oracle PLSQL Tutorial
31) Perl
32) Php
33) PostgreSQL
34) Python
35) Python Tutorial
36) Ruby
37) Silverlight
38) VB.Net
39) VB.Net by API
40) VB.Net Tutorial
41) Visual C++ .NET
42) VisualBasic Script
43) XML
44) XML Tutorial
 
C++
1) Algorithm
2) Basics
3) Bitset
4) Class
5) Console
6) Data Structure
7) Data Type
8) Deque
9) Development
10) File
11) Function
12) Generic
13) Language
14) List
15) Map Multimap
16) Overload
17) Pointer
18) Qt
19) Queue Stack
20) Set Multiset
21) String
22) Valarray
23) Vector
Vector
1) Add class to a vector and then delete them one by one
2) Appending values to Vector Containers after sorting
3) Assign elements in vector a value through an iterator
4) Assign Items in int array to vector
5) Assign value to the last Item
6) Binary search a vector
7) Call member function for each element in vector
8) Change contents of vector through an iterator
9) Checking If Two Containers Are Equal with == operator
10) Clear a vector
11) Combine insert and end to add elements to the end of vector
12) Compare two containers
13) Compare two vectors
14) Computing an inner product of tuples represented as vectors
15) Computing the sum with template iterators
16) Const_iterator from different containers
17) Count elements in a vector by value
18) Create and initialize vector with float number array
19) Create another vector that contains a subrange of vector
20) Create const_iterator out of vector of pairs
21) Create const_reverse_iterator out of vector of pairs
22) Demonstrating STL vector constructors with a user-defined type
23) Demonstrating STL vector constructors with a user-defined type and showing copying explicitly
24) Demonstrating STL vector copying constructors
25) Demonstrating the generic find algorithm with a vector
26) Demonstrating the simplest STL vector constructors
27) Demonstrating the STL vector back and pop_back operations
28) Demonstrating the STL vector capacity
29) Demonstrating the STL vector capacity and reserve functions
30) Demonstrating the STL vector front and erase operations
31) Demonstrating the STL vector push_back functions
32) Display contents of vector through an iterator
33) Erase first element
34) Fill in vector with array by using pointer and offset
35) Find the first of two values
36) Find the first pair of matching consecutive elements
37) Find the first subsequence
38) Find the first subsequence of two consecutive 8s
39) Find the last subsequence (which should be the same as the first)
40) Find the max value in the vector
41) Find the min value in the vector
42) Get the first element in a vector
43) Get the last element in the vector
44) Getting a C-Style Array from a Vector
45) Illustrating normal and reverse iteration
46) Insert 10 duplicate value to vector
47) Insert characters into vector An iterator to the inserted object is returned
48) Insert element at specific position
49) Insert element by index
50) Insert elements from array
51) Insert one vector to another vector
52) Inserting Elements in a vector Using the push_back Method
53) Inserts an element into a vector at given position
54) Interator operator for vector
55) Locate maximum element in a vector
56) Locate minimum element in a vector
57) Loop thourgh all elements in a vector using
58) Loop through a vector in a reversed order
59) Loop through all elements in a vector in reverse order by using rbegn, rend
60) Loop through all elements in a vector using operator [] instead of operator
61) Make the index of the maximum
62) Make vector large enough to hold all value
63) Merge two vectors
64) Merge two vectors with merge(scores begin(), scores end(),moreScores begin(), moreScores end(),allScores begin())
65) Pass vector of integer to a function
66) Pass vector to a function
67) Perform the heapsort with push_heap and pop_heap
68) Raise all values in a vector by a given percentage
69) Read data from a file and save that to vector
70) Read double from keyboard, save it to a vector and find the max value
71) Read keyboard input to a vector
72) Remove(delete) all elements in the vector
73) Removes an element from an ordered vector
74) Removes an element from an unordered vector
75) Requirements for Classes Used in Vectors
76) Reserve memory for five elements to avoid reallocation
77) Returns the positions of all values within a range
78) Reverse all elements in a vector by using reverse
79) Search the vector for the elements present in the list
80) Sort a vector with duplicates
81) Sort elements in a vector with sort(scores begin(), scores end())
82) Sort vector of user-defined values
83) Store a class object in a vector
84) Store user-defined objects in a vector
85) Storing Specific Values in an Existing Container
86) Use const_iterator to loop through the vector
87) Use for_each function to print all elements in a vector
88) Use generic vector to create vector of chars
89) Use generic vector to create vector of integers
90) Use generic vector to create vector of strings
91) Use indexer to add elements to a vector
92) Use indexer to reference elements in a vector
93) Use indexer to update element in the vector
94) Use lower_bound on vector
95) Use merge with back_inserter
96) Use std
97) Use toupper function to convert all elements in a char vector to upper case
98) Use typedef to define new type based on vector
99) Use unique_copy to remove duplicate words
100) Use upper_bound on vector
101) Use vector at to change element in the vector
102) Vector
103) Vector assignment
104) Vector Basic
105) Vector begin, vector end returns the iterators
106) Vector declaration
107) Vector size before and after elements insertion
108) Vectors copy constructor